﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DataConnector;
using Library;
using System.Collections;

namespace LabManager.UserControls.TabControls
{
    public partial class Userdata : UserControl
    {
        public Userdata()
        {
            InitializeComponent();
            tabUser.Load();
        }

        #region Events

        private void tcUserData_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch ((sender as TabControl).SelectedIndex)
            {
                case 0:
                    tabUser.Load();
                    break;
                case 1:
                    tabDepartments.Load();
                    break;
                case 2:
                    tabUserGroups.Load();
                    break;
            }
        }

        #endregion

    }
}
      
